<?php 
$products = $this->customer->getProducts()->load();
if (count($products) > 0):
?>
<div class="demopic">
<div class="showpic">
<dl>
<dt><span id="showTopic"><?php echo $products[0]->getName() ?></span></dt>
<dd>
<span>
<?php echo $products[0]->getIntroduction() ?>
</span>
<span style="display: none;">
<?php echo $products[0]->getDetail() ?>
</span>
<a title="全部" rel="80" onclick="javascript:ShowAllContent(this);" href="javascript:void(0);">[全部]</a>
</dd>
</dl>
<ul id="showpic">
<img height="340" width="510" src="<?php echo $products[0]->getPicture() ?>" style="display: inline;">
</ul>
</div>
<span class="text"></span>
<div id="navpic" class="navpic">
<h3><a title="上一页" href="javascript:void(0);"><span class=""></span></a></h3>
<ul>
<?php foreach ($products as $product): ?>
<li title="<?php echo $product->getName() ?>" class="">
<img height="66" width="99" src="<?php echo $product->getPicture() ?>">
<span class="product_introdution" style="display:none"><?php echo $product->getIntrodution() ?></span>
<span class="product_detail" style="display:none"><?php echo $product->getDetail() ?></span>
</li>
<?php endforeach; ?>
</ul>
<h4><a title="下一页" href="javascript:void(0);"><span></span></a></h4>
</div>
</div>
<?php endif ?>